﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection.Metadata.Ecma335;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using VM.Entity.EntityDto.Goods;
using VM.Entity.EntityMap.Goods;

namespace VM.Entity.EntityDto.ShopCar
{
    public class getShopCarListDto
    {
        /// <summary>
        /// 购物车列表dto
        /// </summary>
        public getShopCarListDto()
        { }
        #region Model
        private int _id;
        private string _name;
        private int _goodid;
        private int _specid;
        private int _qty;
        private int _createuserid;
        private DateTime _createdate;
        private string _description;
        /// <summary>
        /// 购物车内码
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, IsOnlyIgnoreInsert = true)]
        public int id
        {
            set { _id = value; }
            get { return _id; }
        }


        /// <summary>
        /// 商品内码
        /// </summary>
        public int goodId
        {
            set { _goodid = value; }
            get { return _goodid; }
        }
        /// <summary>
        /// 规格内码
        /// </summary>
        public int specId
        {
            set { _specid = value; }
            get { return _specid; }
        }


        /// <summary>
        /// 商品数量
        /// </summary>
        public int? qty { get; set; }

        ///// <summary>
        ///// 图片
        ///// </summary>
        //public string  goodImgSrc { get; set; }

        ///// <summary>
        ///// 商品名称
        ///// </summary>
        //public string goodTitle { get; set; }

        public getGoodsListByTypeIdDto? good { get; set; }

        /// <summary>
        /// 规格名称
        /// </summary>
        public good_spec? spec { get; set; }




        /// <summary>
        /// 创建人
        /// </summary>
        [JsonIgnore]
        public int createUserId
        {
            set { _createuserid = value; }
            get { return _createuserid; }
        }

        public string createUserName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime createDate
        {
            set { _createdate = value; }
            get { return _createdate; }
        }


        /// <summary>
        /// 备注
        /// </summary>
        public string description
        {
            set { _description = value; }
            get { return _description; }
        }
        #endregion Model
    }
}
